package com.xue.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.fastjson.JSON;
import com.xue.bean.Product;
import com.xue.service.IDubboService;
import com.xue.service.ISkillService;

@Service
@Component
public class DubboServiceImpl implements IDubboService{

	@Autowired
	ISkillService skillService;
	
	
	@Override
	public String getShop(Product pro, String userId) {
		List<Map<String,String>> list = skillService.skillShop(pro, userId);
		String rtnStr = JSON.toJSONString(list);
		return rtnStr;
	}
	
	public String getUserShop(Product pro , String userId) {
		System.out.println("****************执行后台********************");
		return "后台返回";
	}
}
